fixed test that randomly fails