improved addr_range.go, added test