Changed component loader file system mocking to a DI approach.