added tests for database classes