test code for cookbook.rb