added glm factors test, modified existing to include relative tolerance instead of absolute difference in expected values