ISPN-2814

Added in tests to confirm that a custom command that has a return value
is serialized properly.