Added unit tests for localization