Add zauth test, zpoller fixes, zcert fixes