fix broken test.
add correct assertions in DbPersistenceTest