Enforce const-correctness in tests