fix reverse implementation
fix reverse test