Tests for parse_ports, add some documentation