add mkdirp require statement
Extract createTestPlan into its own model class