TST fix tests to match changed random generation