python/tests: Add test for generated and duplicate mAPIIDs