As a first step add coverage test as non-voting with a low threshold,
and exclude older plugins.
Also removing some unused code, and relocating tests-only code, and adding
some unit tests to improve coverage.
Change-Id: Ib7af0b5de49e1a0ee2927b01f2a5f71acf633fb5