Corpus tests and updates to model