better code coverage for persistence