add test for monkey patching