Adding RSpec tests to example

Adding RSpec tests to example