Moved the check for the rails test environment into rails/test_unit so that you
can select frameworks separately when running rake test.
Testcase for #10066. Serialized or time zone aware attributes should not be wrapped twice.
Fix a SystemStackError that occurs when using time zone aware attributes.

This fixes issue #10066
Add a CHANGELOG entry about #10066.