test #first() and #last()