Optimize unit tests.