updated Rspec tests for self.class