use random state in test (no global seed) + cosmit