Fixed error in core unit tests.