Passing refactor of 'create invalid task' scenario