Improved Network test by using countdown latch.

Removed the horrid thread sleep in this test and replaced with a CountDownLatch with the same timeout value. Also made sure this test actually asserts that a message is both sent and received.

Also removed some unused parameters and methods.

Removed commented out code.