DRY up container tests.