Remove bugs from authentication test