Test helpers.