pkcs10: fix the tests

There were a couple of imports missing in the test file as well as the
Fqdn function which used to lived in a different module within hapi.