fixed tests when message framework is disabled.