fix(test): remove while loop in test to see if we can avoid test that hangs