example using rspec as a testing method