added test for user repo