Added test code for port_stats