fun check(): String
Runs the test for all directories of a component.
Return the error message if the test fails