Added localization with unit tests passing with mongodb