More association tests; fixes related to queries interpreted in a relative context