Added test suite for 'last' and 'tail' functionality