Update persistent test for 0.8.0

There were warnings about using the deprecated API when testing.