fixed test with random failures