Add unit tests for glm link functions; compare performance to R