Add test for using the "extra" dict in translate.py