add a test for addYieldHandler