Add tests and code coverage to auto2dot