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.
Merge branch 'feature/8028_fix_windows_7_db_build' into develop