Make coverage work for all environments