Mock filesystem in tests