Added end-to-end testing.