fixed test failing on iOS 5
fixed test failing on iOS 5
fixed changed method in unit test
implemented custom HTML range methods #491
added further unit tests for range methods in #491