Add an integration test for user repository