Fixed event call in localization and some tests