change test method to ClientNio and ServerNio