Fixed the first DOM test. Cleaned up logging.