rspec tests and user authentication 

New rspec tests and user authentication updates