Test for dense mode added to 'trie' test

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>