Reorganized cookbook section.
Wrote integration tests for resolving "apple."