Refs #8028 - Ensure that X values are carried over to alg result.

* Add setX() line as per Russell's suggestion.
* Cover the X data with a unit test.