All unit tests should be (1) intentionally designed for coverage, (2) non-redundant, and (3) maintainable.

Apply these rules:

1) Enforce correctness with invariants

2) Cover critical tensor ranks/shapes, not just “typical” ones

3) Reuse shared test helpers for layer/model execution

4) Remove duplicated or near-identical test cases

Result: tests become smaller, faster to review, easier to maintain, and less likely to miss regressions due to missing shape variants or redundant cases.