Added addFirst, addLast and applicable test cases