Update testing tools to support NIO bodies within tests