Add coverage tests

We are about 60% coverage, there is still a lots of work to
do on the test suite