move coverage code from tests.py to makefile