Added test for optionEndsValues with the last option