This is the fix proposed by Nicolas. See http://lists.gnu.org/archive/html/emacs-orgmode/2017-12/msg00564.html Add and accommodate some tests.
* testing/lisp/test-org-inlinetask.el: New file. Testing `org-inlinetask-goto-end'.