Test and remove non moving axes.

Test and remove non moving axes.