Added a functional test for generating from a directory