tests for leads sorting