Test for localization