fixed global destruction problem with junit output