fixed the broken unit tests for the element class