Add tests for ntp_filegen.c

filegen_setup()
filegen_config()
filegen_register()
filegen_unregister()
and some static functions.