Use the remote_models gem.
Implements some tests to check remote associations.