Completed rspec test

Sending pull request, re-written.