added test for glossary. Finished glossary implementation. Differ-GSOC/differ#77