TEST FOR G AND D