added tests for ports and chained addInput