Test FileSink. Simplify tests.