implement reverse linklist and its unit test case