This seems really odd. Why would you patch outside of an actual test case? What's the point?