Nested resources tests.

These tests cover reports from issue #380.

I believe that #380 may have been fixed since it was first opened. These tests I believe cover what's explained in the issue, though, and that the issue should be closed.