Fixed dbfile:close-all and added tests