Improving the tests around the DOM interface.
- Adding first output string test
- Adding attribute tests
- Cleaning up the dom test