add addElement and test passed