Fix unit tests and continuous integration.