Merge "Refactor simple_encode_test.cc"