add possibility to save DOT file
added test files