Fixing test_reverse