final uct algorithms for tests