#142 update with afterClass and beforeClass