Adding JUnit tests for comms and diff.