add rspec test for util module

Redundant `begin` block detected.