Associations and tests