added database tests, starting model tests