Added tests for User.rb