add rspec test for coins