adds with() to tests to add more expectations on mocks