implement test using rspec