app: use goroutine to make test more reliable

Thanks travis-ci :-)