Update XYAxes and add a basic unit test