Add a unit test for reverse