use expect loop in device assertion

reason: the test is a little too fast for some machines