Added more unit tests for send.
Fixed pretty-printing for variables.