Improve testing infrastructure significantly by introducing a portable test format. Fix small bug in url.js.