Fix cover directive unit test on Firefox