added rspec functionality