fixed some rspec test