Better management of apache
Add support for test direction