fix Range() read/write
fix mtest build