is test running is checked once and then state is cached