Implemented tests with known database state.