Made unit tests for util and passed them all.