Make reversed work correctly
Add reverse case to tests.