fixed tests and added Makefile generation for tests/. Implemented Substances synonym example