adding unittests and a doc block for the "utils" module