the test isn't ending until some timeout - you probably need to explicitly say you're done in the pointerout handler.