postgis: add a test

Closes #32667.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>