tests for database