Added test to compare DOT files (Jure's suggestion.