Add test coverage for EC2 port feature