Use test/unit/mock_threads.js, and it looks like you'll need to create mock_notify.js