Flake8 fix, Docstring fix, code beautified
Added test for test manager and new dispatch exception.