added communication test code