add functional test for message controller