Added tests for utils class
pep8 fixes