fixed compilation errors in testpci.cpp