Add test coverage and linting to tests