fixing nio client in test case