refactoring in the Tests.html

did some refactoring for this file