Add rake test description

No behavior change
Refactored nested associations so they are more readable. Added comments
which make it clearer about what's going on.
Merge pull request #9614 from wangjohn/refactoring_nested_associations_for_readability

Refactored nested associations so they are more readable.
Merge pull request #8670 from sanemat/fix/rake-desc

Add rake test description
Fix failing test regarding console change to fix sandboxing

Introduced in be3e10cd26bc8ec29c6474d03a08a8e733108e7d.