Should there be a method on the TestQueryType enum instead of this switch?