refactor verify_portstats and move to testutils
3 files changed