created test for directive lastAdded