Enhance 'test' module

- Add ‘repeat’ parameter
- Add ‘setUpCase’ and ‘tearDownCase’ functions
- Change affect test cases codes.