Fixed typo
Added rspec tests