Fixed typo in new namespace test for domscan, use ids when possible in docinfo._heads