Added validation tests for Task model