nio test case