Fix user repository spec