Test case for gated clock optimization.