Fix query merge specs.

Makes it play well with Ruby `1.8.7`.
Based on @sferik suggestion: http://git.io/-_WPkQ