refs #9257. Extend tests to nThreads. Fix logic error.

Tests extended and refactored. The multithreaded schenario now has some
good test cases. I had to fix a bug where empty labels were being
processed via a label map. However empty labels always have an id of -1,
so weren't being found in the map and this was causing a null pointer
exception further down the line.