Fixed beforeClass exception issue