UnnamedStateAttributeRef: test

It was not covered by the existing tests