Minor refactor of tests. Add htmlcov to gitignore.