Fix tests by clearing style state in between.