Add the message method to components and translators when testing