end to end testing with example