Fix failing tests on master.

Not quite sure how this happened as it was working on the PR :/