Added placeholder replacement in custom messages.
Renamed misspelled function formatMesssage to formatMessage.
Added related test.