Adding tests to check the query service is enabled / disabled properly.