Complete tests for XCache class