Add example testEncoder