Revise the build test to compare lengths of wordlists.

The test currently fails on Python 3, for some strange reason.