fix up the mocked end to end test