Added some tests and changed updElem to use lists