[Misc] Added test to prove that the serialized reference doesn't contain the page when the entity type is space. See also http://jira.xwiki.org/browse/XWIKI-4791