fix dictionary test.

in data/test/dictionary_test.dict.yaml: the value of dictionary: does not match the first part of the file name before the dot. This rule is now enforced by the dictionary file searching stategy during dictionary compilation.
add cmake option BUILD_TEST.

thanks to dennis.yxun for the patch.