Fixed bug in test_heterogeneity(). Added tests for test_heterogeneity().
Fixed bug in binomial_glm_plot().
Added check if the model entered has a single factor covariate.