add patching to tests