fixed race condition in e2e tests