Some unit test optimizations.