Test case for 'distinct' projection.