daemon test created.
Rewriten from custom arg parsing to argparse.
Daemon's function is now tested.