test(rest): add tests form case definition query

related to #CAM-2199
fix(engine/test): fix test application scanner test case

related to #CAM-2199