add test for reverse