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