added more to functional test and...

made dot file writing deterministic