improved AlphabetChain test