Remove java 7 nio copy from tests