Add a test for get_id() (GH-21370)

1 file changed