fix test NPE by setting channel id