Included Repository class, enabled user persist method for testing.