Adds equality operator to Task