Added unit test for monkey patch