trigram bdb testing