[Validator] Added regression test for `undefined method `spec_consumer'`
[Validator] Improve file_accessor determination