default test runner now phantomjs. added close logic for document.