Tests for formatMessage added