Add test for OutOfRangeError.