fixed some timing error in e2e tests