configured rspec and added basic unit tests for user model