Some minor refactoring.
Add junit dependency
A simple unit test of the master server
Successfully opened a slave channel