[beeswax] Fix monkey patching teardown in tests