fixing end-to-end tests