Unit test for unique sum