Made wait time configurable through environment variable.
Increased wait time for Travis CI tests to 5 seconds.