built integration test for user repository