Finished sync() test
commented out testIsSynced (TODO)
updated parts from java.io to java.nio