Fixed distributed distinct test