Testing user repository functionality