[tests] added tests for unit dispatcher