Maybe make this a class? TestUnique. move the other unique tests into it, and then you can if you like split the error checks into their own function (since run_axis_tests is part of the class).  I would like some short tests for invalid axes, too.