Brave. I'd like one. They're license free here and so is the gun powder and primers.
I'd be afraid to fire it it's probably 200years old
A gun smith could probably tell if it's dangerous or not.
Generally, if you can't tell by looking, "Magaflux" it.
If it has been rusted and restored, you probably should not try to shoot it. The age does not matter, actually. I used to know men who routinely shot ancient weapons of which some were several hundred years old. What matters, mostly depends on how well the iron was kept all these years.
If it has not corroded or been used at a higher pressure than it was designed to withstand (modern powder charges must be used with caution in ancient weapons, obviously!), it is as strong as the day it was made.
I would probably take about ten seconds to decide whether or not to shoot it or oil it up and set in a frame. I doubt that it took Parts that long.