replacing rand('state', 0) with rng(0) cause of error message in some tests