Set magento root dir for tests.