Adding authorization in tests