Make some exec_query expectations less fragile between rails versions.

These expectations were failing on rails 4.2.0.rc1