TestSort modified
Add realization to testAddFirst and testAddLast