Fixed line endings in test model classes
Fixed skipped RelationOriginalReferenceTests
Added tests to RecordToFromArrayTest
Fixed reference change via foreign key field change