Test class for InstructionMessage created. Let us now implement the methods so that the tests shall pass.