Testing authentication scheme