Added generic test cases for database access