completed tests for databases