add missing test to avoid uninitialised value when a page with metadata is removed