Finished up the Dom object with some tests