Added tests to the patcher run() method