Fix test_pnet

fixes #829
Merge pull request #830 from authmillenon/fix_test_pnet

tests: Fix test_pnet