enabled registering callbacks for messages
added more parameters for configuring the behaviour of the test node