fix tests, locale dao implementation for mongo, some minor fixes