add tests from examples in perlfunc/reverse