remove mock usages in some tests
make period exception and timestamp exception as runtime exceptions
huge, huge refactor: remove all singletons, rename handlers to departments