Added port to JSON message if the inputContext has a port
added tests for ports and chained addInput
Added test and modification to validate that the Port value is being set on incoming messages.