randomize some data if test parameter is set to true