Fixed testAdd and addElements methods