Add listRotate and support test static app

listRotate is aimed to put the first element to the last and the second
becomes the first element.