Handle documentation tests with matrix