Adding them as dev-requirements makes it impossible to run the testsuite without the extensions. It is a bad idea IMO. you should skip the tests requiring them when they are not available rather than forbidding to run tests altogether.