Unit tests for the util methods