Refactored tests. Extracted helper methods into user_helper.rb. Tests passing.