add tests for Comparer, pull out test_helper.rb