Make tests working with new authentication