Change patches to all test functions