RSpec test cases added for utility classes