Switching test_communication to assertions and fixing a problem when fd wasn't open