Added a test for adding an element.