Adding unit test to chat plugin