use random search in tests