Added first, last, eq, isElement methods and tests