make sure alloy is defined
this allows me to run unit tests in phantomjs (headless browser). Execution of tests takes only a few seconds now instead of 1-2 minutes