[PATCH 0/2] selftests: Introduce common min()/max() and apply them in net tests