Added warning for wrong connection type, start work on port stats
Added test code for port_stats