Added regression tests for KT-2474 Range lacks reverse() in JavaScript backend

#KT-2474 Fixed