Added tests for glm.