tests for Daemon Listener #59
generating privKey, added shutdown function for ipfsnode