fix a test in core