Add end-to-end test.