create unit tests for user.rb, refactor message.rb
refactor tests and create new tests for Message model