Fixed a few tests
Added parameter master_seed