Minor fixes to test_enqueue_task