Added a suite of tests to util.py