tests for users and removed redundant code in static_pages_spec.rb