Add tests for CAN_LOGIN_AS