Reverse list with tests added