Added doctest on objects()