Reorganized method definitions in src/glmfit.jl

Corrected a typo and reorganized tests.