added database model tests