Add update related test cases in nested_model_form_test.rb and nested_models_form_test.rb and refactor the nested_collection_association_form_test.rb