Fix tests behaviour of external authent