Allow _TESTS attribute for IEs with multiple tests

This also improves the numbering of duplicate tests