Add tests for mp_translate_state()