fix class declaration
add debug logs to PEAgent mock
change printf_chk -> printf
print out provisioning request query string