Messages controller tests