created tests for EntityMetadata
updated isReference function to check against the value constructor rather than a couple properties