Unit tests.

Added unit test class for LongElement and ListElement. The ListElement test class needs a lot more tests for Lists of elment merging.