Refactor test coverage task