Rewrite test for file creation
Used yeoman-generator.assert for faster test