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>
Merge pull request #9 from nightire/master

Code cleanups