Fixed test for sphinx-build

Reorganised tests