fixed tests with mocked filesystem CSV test