Created new test class for Element and moved tests into it.