Fix bug in analyst.validate test