Test the agent before starting the daemon.