Remove unused 'index' argument from the Element.remove method.

Part of #2.
Add test for Element.remove method.

Part of #2.