added tests for bqeueu_dispatcher, state_dispatcher