Added rspec tests for allow-query-cache option