Fix bug in authcore test