Added RSpec tests for the model.