add a few junction tests relevant to the optimizer