Added test for task index