add test case, and fix WebWorker#inbox