Use a more specific expecation in a test.

We only want to run through the transcoding directive twice.
However it was unable to be measured before because we were
creating a new directive on each test run. Fixed by only creating
the class once.