updated validation, added some tests, renamed test_communication for brevity