In the federal system, courts may only decide actual cases or controversies; it is not possible to request the federal courts to review a law without at least one party having legal standing to engage in a lawsuit.
In both systems, courts can only address real disputes; seeking court review of laws necessitates legal rights for parties to bring lawsuits.