Add test and fix bug in MessageConverters