tests: improve persist test