Test autojit on classes