Added tests for parallel cost and parallel JtJ.
Added tests for parallel cost and parallel JtJ.

We really need better tests for exception handling, but those are annoying
to write with our poor synchronization stuff.

GutenkunstLab/SloppyCell,GutenkunstLab/SloppyCell