added localization-related test using assert_generates