XD-1876 Add test for #jsonPath with a filter

This is part of the effort to retire the script tests.