Rewrite tests for new daemon.