all: add tests.

Why are not lines 84 - 94 in a setup func?