Fix tests: the problem was that Chrome used to "normalized" range selection. This is not the default behaviour anymore for the lastest versions. The issue is discussed here https://code.google.com/p/chromium/issues/detail?id=271445.