minor cleanup in document & graph tests [ci skip]