test coverage for MasterController.js

- [x] integration test of socket listeners