testing a simple parser using DOM