make tests robust across platforms