tests for addlast and isempty operations