added some test cases for communication patterns...it is still buggy at the moment though