fixed distinct tests.
all current tests pass.