Adding end-to-end tests