Added missing tests to DatabaseRepositoryTest.