Small refactorings, migrating some basic io to basic jdk7 nio2
removed some redoundant tests