ISPN-2814

Added in test to confirm thata custom command that have return values
are serialized properly.