test instant encode