Add a test for unit replacement on an Axis from Python. Refs #6882