Some of the stageDebug JS tests are flawed because they use duplicate property definitions:
One potential fix would be to accept arrays of values for the startKey and endKey parameters.
Here's Max's comment from
...fixing these tests (and preserving their intent) requires changing the stageDebug command to accept startKey and endKey as arrays. The mongo shell has no way to guarantee an order for object keys, so using stripFieldNames() is not an effective solution. Enabling the mongo shell to query using ranges of a compound index with the stageDebug command will be done separately.