Refactor YARN Unit tests so individual tests can run by themself.

    Pull out the utilities and @Before/AfterClass out of the suite. Also
    remove some unused imports and make test classes final.