build: add quick consensus lib tests

They should be hooked up in other places as well, but this is a start.
build: shared lib build should work reasonably well now