Used a reverse relation to get test cases instead of a manual query.