Trying to make a test pass more reliably