Moving expected_call_entry inside since this is where we need it