Try again to make AppVeyor testing consistent

This change reverts previous failed attempts at fixes, and inserts a
sleep in JSON tests before requesting completion data. Hopefully these
8 seconds should be enough to get the helptext consistently.
Merge pull request #856 from rneatherway/integration-tests-fix

Integration tests fix