Adding cordova.js doesn't work here, because it messes up the way addEventListener behaves.  It also cannot properly load in an iframe (afaik…).
You need to add an id='stage' element in order for the tests to run.