Test JSON response in tasks index test