Fixed beforeClass fail issue