Fix race condition in Web tests due to static variable