creating helpers and test_helpers, cleaning up bagging to better match samme for conformity