Sri Lanka’s leftist president faces first parliament test