preparation for a new expect syntax for mocks