Introduced metadata test and refactored generator test
Changed to fileutils on generator