log functions changing style attribute from tests