Add test for user repository