add tests of log dispaching