add test case for port_range