MultiportAggregator bug fixes and tests