Fix tests and correct issues in GLShader.