Added a test for translations after optional segments