fixed tests in core