Added a test and fix for entities with self-referencing relations
Added test for internal properties
Added test for Guid primary key field
Added test for private properties