fix random_seed in test
format cleaning and comment for different parameter name