Fixed validate_corpus test