added autosave test for has_many_records relation