Add corpus validation test