-Fix some bugs within the resource
and add some test scenarios when creating cookbook_files 
- Add some colors to the raise conditions.