Add auth post error unittest