Added tests to the user repository