I have used a 2nd motor with a regen capable controller to tune a motor under load. Idk how much you will want to spend on it or how precise it needs to be but its a quick and dirty dyno if you have lots of motors and controllers laying around.
Most hub motors have a brake flange you can attach sprockets to. Running a chain between the 2 motors gives you a poor man's dyno.
You also have to contend with people accusing you of trying to build a perpetual motion generator.