split up scripts in test/index.html for code coverage