adding testcases for patch support