Code refactored to allow for testing of master responding when ZK isn't ...

...running
Consider just making a mock for the ZKTM instead of an inner class.