Added rm output dir to prevent accumulation of test data.