windows file options and unittests for simple cases