add assert to mocked out function call