Fix two numerical issues in unit tests.