Update encode_decode_api_test.cpp