Add a couple of tests for query saving.