authenticate tests