added junit chat test class and test cases