Bit of unit test code duplication I forgot to reduce in the last commit.