added tests to chat controller tests