ControllerChain class and tests created