added wait for async code
travis-ci