Add specs for util methods