update tests/PFunction: fix dynamic library linking; make test_MyFunc timing comparison more fair