add self-join and union on build join side test queries