Fix authorization tests