add test for serializing/deserializing nodes

this test checks that a node can be passed as the argument to remotely executed
code as well as used as a return value