Fix test failure if test output dir does not already exist