adding corpus tests and creating basic functions for corpus model