add test case 6 for function moveRight