[fix] fixed message properties enconding and tests