rspec tests for classes