better test coverage for persistence class