extend doctestcompare test (and fix the test setup)