Fix component-dir use in the tests