test for distinct