Refactored test runners to include headless browser.