implemented spec for valuesOrElse