Explain mocking file structures and stubbing package functions