add wait for task error test