Add component directory setting to test class