test cases for smj on duplicated tuples