Force port_index to be Integer + tests to enforce