add tests for userPersistence
0.3.0