make tests more resilent