Added vocabulary extraction with unit test using mini-test