tests for db