Stubbing needed functions