Fix test_pnet