add rspec test for util module

Line is too long. [187/80]