TS/JPM: adding support for facet joins on chosen fields; introducing unit tests