Added rspec and tests for models