Create tests and methods for message controller