add coverage to front page

Also add a bunch of tests to improve coverage.