testing of a simple web worker case