Multiplex.Dup should create a copy of the received buffer, not the full buffer
correct slice should be data[offset:offset+length]
Added "echo" test