Adding tests for ClassMetadata::hasEndpoint()