Fix generator files to allow multiple hyphens in cookbook_name

If a cookbook name contains multiple hyphens, the generated default_test.rb and helpers.rb will have invalid module name.