tests for Daemon Listener #59

Daemon test and using IDfromPubKey instead of hardcoding in the public key.