Added initial tests for UnifiedFile. This enabled me to fix some hidden bugs.