added two new end-to-end tests