Use expect syntax in core_spec