Fixed the NIOCommunicator and also wrote testcases for the same
Added junit testcases for the EventBus used for intraprocess 
communication