fix up test to test NIO issue