Issue 27: Need tests for Corpus class

Fixes #27 
Create tmp directory explicitly here using `tempfile`