This new script tests set-path/replace-path and set-pathq/replace-pathq rules. It also tests path and pathq sample fetches. This patch should be backported to 2.2 if corresponding keywords are also backported.