Test for merging a join clause written as text