adding a unit test for first and last