Added test cases for Database class