Fix warnings in Pygmalion.Dot
Move tests into separate files where possible