Fixed all failing unit tests.