Add tests for patchContactHandler