Add test for a missed case.
Simplify FileRequirementAnalyser and RequirementAnalyser::run.