Add tests. Setup coverage.