Added tests for utilities functions.