Test beforeOpenCB / afterOpenCB