Improved test for calling completion handler from input line.