updated to run tests and open debug on fail

The file runTestsOnServer will autorun the html test suite. If the tests
timeout or the server fails to launch then the debug environment will
open.