Testing inflationary cosmology with BICEP2 and the Keck Array