Fixed XSS bug related to testing