Add API tests

This PR adds tests that prove that the API is available when loaded

* in a regular script tag
* by RequireJS
* by RequireJS in the jQuery build version (with jQuery present)
Only `global` is present in this file.