Fix test_pnet

fixes #829