Added tests for Database class.