Add test methods to utilities.rb