d-outcome measurement for a nonlocality test