Support to beforeClass and afterClass methods.