Add test for only clause that requires an additional join.
Explicitly join to tables required by only clauses instead of only using tables already joined to.