Mock ActiveRecord methods in the test_helper