Fixed bug in Range.as

Also added more unit testing