Add test case for 3D geometries in immediate API