Add search method to cookbook2.rb and add call to search method in testcode2.rb.