fixed specs for rspec upgrade
fixed query builder spec for rspec upgrade