add sleep in tests and go fmt Upstream-commit: 8f9dd861467613a081c4584eafadc60acbb7890f Component: engine