Unit tests to ensure distinct doesn't blow up with bad inputs