Add reverse method and test