rspec for message controller

fixed rspec message controller