Testing Device API with cordova.docpad skeleton