make a test more defensive