db.ReferenceProperty is now not dereferenced for comparison
Added Unit Tests