Move webmock code in test_helper