test(reverse): test for string and colleciton