patched unit test