Added tests for reverse