Update Encode testing case