Fix bug in creating test files

Signed-off-by: Colin Patrick McCabe <cmccabe@cloudera.com>