add test for jobs which use query to filter input