Nested resources tests.

These tests cover reports from issue #380.