Added cancel button and activity indicator for running tests.
Fix bug in test timeout handling.