engines: add unit tests for engines.Dispatcher
engines: go fmt fix in engines.go