Gaia Data Release 1: Testing parallaxes with local Cepheids and RR Lyrae stars