Delete repeated words in test

Signed-off-by: Albert Yu <dev.yufan@gmail.com>
Little improvement on for loop

Signed-off-by: Albert Yu <dev.yufan@gmail.com>