Added rspec tests for classes