Moved test execution into seperate thread, as it will need to check for events occurring