fix regular expression for testing threads