SERVER-11679 improve query planner unit test

Improves db/query/query_planner_test.cpp primarily by adding "assertSolutionExists()". This function takes in a JSON-based representation of a QuerySolution and confirms that this solution was in fact generated by QueryPlanner.