fixed seeding issue; fixed set_seed in tests