Don't write to persistence during unit tests.