made bug fix in rspec test