#26 regeneration controller and tests for controller