Bugs fix

 - fix style in errors message
 - update test for proper work with locales