add search test and fix a bug in word table