fixed test that sometimes fails