(#22363) Add tests for evaluation of types