Fix build of tests. Fix unit tests for darksend and alerts