moved clear mocks to top to avoid mocking of remove-item to fail during cleanup