Make sure query cloning works as expected.