jstests

A dedicated branch for ongoing work on jstests. Only contains fixes right now.

<!---
@huboard:{"order":884.5}
-->