add test for Task.validateRequests , refine some task behaviors