IR: Add 'invalid-' to test names for invalid assembly

Take the opportunity to sort these by `metadata`.