Fix tests

* Change import path so the threadlocal doesn't exist in 2 places in
  memory .
* Add a dispatch_uid so the signals aren't sent twice for good measure.