Altered tests to support PhantomJS

PhantomJS doesn't support the Alert API, broke out the alert tests so that PhantomJS doesn't have to pass them.
Altered tests to support PhantomJS.

PhantomJS doesn't support the Alert API. :'(