Enable hook only for test2junit task and not globally.