Added test functions to controller file to enable (hopefully) i18n localization.