remove java.nio usage in tests, fix #8