Fix code style and unit checks.