[master] build fix: instantiate faked IOEndpoint for test explicitly.

some g++ doesn't seem to be able to use a temporary as a const reference.