Add whenAny method to Task
Add initial tests for whenAny method