Add test case for recursive reversal.