use array for second arg of patchFn, fix scoping issue in patchFn
fix typo in test name