Dsrtrat has posted some good advice there.
Some other simple things you can try first (if you want) without the tester.
I usually try and test the simple things first, and then work forward to the harder things.
1. Remove the inside screen cover.
If you have an older fan, it will probably have about 8 small screws you will have to remove, and then the screen will come off.
Open the roof vent as far as it will open.
Look through the fan blades towards the roof area. In the front of the vent, the front of the vent meaning near where the vent cover is attached and hinged at the roof. This would be the side of the vent closer to the cabover bed, instead of the rear camper door.
There should be a small silver plunger switch up there. If you have small hands you should be able to reach between the fan blades with your finger and push the switch up and down with your finger tip. If it is working, it will spring ("pop") back up when you take your finger off it.
I have seen this small switch get sticky / stuck from time to time.
This switch gets pushed down as the roof vent closes to make sure the customer does not run the fan with the vent lid closed.
If it is stuck down, you will just have to clean it off well, and maybe lubricate it with some silicone spray. This is the most common problem I have seen if the fan is intermittent.
# 2.
If that is not the problem you could also remove the 4 small screws holding the square trim ring on inside the camper (trim ring around the vent).
Once this is removed you should be able to see the 2 wires coming from inside the roof hooked up to the fan.
Check to make sure these are tight and won't easily pull apart. Maybe wiggle them to see if the fan comes on when you are wiggling them.
Make sure you have 12v power coming as well.
Hope this helps.
Happy Camping !
.
.