Tune ratio controller and cover it by tests