adding case P to the list of test cases
writing out XMLCatalog only if it contains at least one mapping