Fix test data to remove cases such as node/0 and user/0 and fix scripts
to avoid using 0 as a random number