db unit test cases