added some end2end tests