Adds more select tests with a JOIN
Adds tests for conditions