add test and fix for nested_attributes update
Merge pull request #143 from tbeauvais/query_method_fix

Patched to AR reverse_sql_order method to brake apart CPKs
Merge pull request #142 from constantcontact/nested_attributes

add test and fix for nested_attributes update