Add a testing method to patch executables.