fix e2e test by initialization waiting