add test 4 for function moveLeft, fix a bug in test 4 function moveRight