Add end-to-end test case