unit testing, javascript xml