Refactor the test code
Refactor the input test
Cleanup
Refactor R script logregr_group_test.R
Fixed a bug in global_init_file
logregr with nulls

fixed input tests and unfinished changes for output tests