Fix #10366 (geometry functions not working in rule test)