Test of a diffraction grating neutron interferometer