[BACKLOG-290] Fixed MetadataResourceTest