refactored fs-util tests to match promise pattern