Willoman
-there is absolutely no way you would be tested for a natural hormone like melatonin-your brain secretes this stuff at night when you close your eyes to sleep.Thus there is no danger of loss of licence as you suggest.
All you have to do is use it sensibly-don't take one just before reporting for a flight!
Additionally, the stuff is a very powerful antioxidant-ie its good for you!