test_named_entries has a test for that, see line 109