Add DebugHelperTest
Merge pull request #9574 from robertomiranda/debug_helper_test

Add DebugHelperTest
Add missing require to debug helper test
Created a method to automatically find inverse associations and cache
the results. Added tests to check to make sure that inverse associations are
automatically found when has_many, has_one, or belongs_to associations
are defined.