SERVER-10026 port old dbtests to single_solution_runner_test

Test cases from dbtests/queryoptimizercursortests.cpp for dead query code need to be ported to the new system. This adds some new dbtests (and a js test) that try to cover some analogous cases. The major change is an added dbtest for SingleSolutionRunner.