Add some end-to-end tests