Don't extend non-existing modules

Fixes an issue where a Rails project skips the test unit railtie
completely, eg:

# require "rails/test_unit/railtie"