Fix testcases to not rely upon target-* attributes.