Add test for #302

Numbers in word pairs is allowed but not tested in AttributeManager (but
is probably tested elsewhere).