Updated tests to be run headless with jasmine/phantom.