Add unit test for IOProtocolHandler