Stubbing out tests