DRY up tests.