Added a little ScalaTest unit test for Element, taken from p 258 of PIS