Add tests to IssueQuery patch