Added a getTitle method and a test to go with it
Set up the contstructor to have a root element