fixed some test issue with new rspec