Added makedirs to mock in test