Fixed variable scope problem in test4 of addrand-cpu