Update composer.json and add test case for missing dn in magnet