improve glIsProgram testing