Fixed many unit tests.