added test for NIO file operations