Added removeLast method and tests