fix tests to pass on win32 - files must be closed before deletion.