Add a test that actually builds a viz graph

On some levels this is an integration test, but it's pretty fast and
it's configured to just not run if dot is not installed, so it should be
fine for most people.