test case for submit_sm_encoding