added database test cases