Added test cases
Added code shifting does not work for far right