Fixed an issue with kappa unit tests.