Updated test to be more thorough.

  Now we test for more of the generated files, and we also test
 that the created item is the correct type: file vs. directory.