fixed bug in ``dup_rootsum``; added tests.